Skip to content

feat: optimize postage batch snapshot#5343

Open
martinconic wants to merge 2 commits intomasterfrom
pf/postage-snapshot
Open

feat: optimize postage batch snapshot#5343
martinconic wants to merge 2 commits intomasterfrom
pf/postage-snapshot

Conversation

@martinconic
Copy link
Contributor

@martinconic martinconic commented Feb 3, 2026

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

I have implemented a buffer optimization in batchService.

When processing large batches of events (like the 50,000 blocks window enabled), the ChainState will be updated in memory and only written to disk once at the end of the batch, instead of 50,000 times. This should eliminate the I/O bottleneck.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@martinconic martinconic changed the title feat: optimize snapshot batch synchronization speed feat: optimize postage batch snapshot Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants